/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */
package com.ktjiaoyu.service;
import com.ktjiaoyu.utils.Page;
import java.util.List;
import com.ktjiaoyu.entity.SysRole;

/**
 *
 * @author 科泰集团教研团队
 * @packageName com.ktjiaoyu
 * @fileName SysRole.java
 * @createTime 2024/10/22 09:37:00
 * @lastModify 2024/10/22 09:37:00
 * @version 1.0.0
 */
public interface SysRoleService {
	/**
	 * 分页查询
	 * @param entity 查询条件实体对象
	 */
	public Page<SysRole> findPage(SysRole entity, Integer pageNo, Integer pageSize) throws Exception;
	/**
	 * 查询全部
	 */
	public List<SysRole> findAll() throws Exception;
	/**
	 * 根据ID查询
	 */
	public SysRole findById(Long id) throws Exception;

	public  boolean saveOrUpdate(SysRole sysRole) throws Exception;
	/**
	 * 删除数据
	 */
	public boolean remove(Long id) throws Exception;

	public SysRole findByCode(String code);


	Long countRoleUsers(Long id);
}
